<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<script type="text/javascript">
function toUpdate(){
	var array = [];
	var url = "<c:url value='/admin/team/user.do' />";
	sns.toUpdate(url, array, 'ck_teamusers','tuid');
}
</script>
<div class="bu">
<button onclick="toUpdate()" class="btn3_mouseout" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"title="UPDATE"><fmt:message key="common.update"/></button>&nbsp;&nbsp;
</div>
<div>
	<table id="t_team_user_list" width="100%"  border="0" cellpadding="0" cellspacing="0" class="pub_list01">
		<thead>
			<tr>
				<th width="50px" class="tdCenter">
				</th>
				<th width="75px" class="tdCenter">用户</th>
				<th width="75px" class="tdCenter">职位</th>
				<th width="75px" class="tdCenter">状态</th>
				<th width="75px" class="tdCenter">在此组昵称</th>
				<th width="75px" class="tdCenter">加入时间</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="teamUser" items="${teamUsers}" varStatus="status">
			<tr>
			<td class="tdCenter">
				<input type="checkbox" name="ck_teamusers" id="ck_<c:out value='${teamUser.tuid}' />" value="${teamUser.tuid}"></input>
			</td>
			<td class="tdCenter">
				<c:out value="${teamUser.userid}"></c:out>
			</td>
			<td class="tdCenter">
				<c:if test="${teamUser.position == 1}"><font color="red">组长</font></c:if>
				<c:if test="${teamUser.position == 2}"><font color="blue">副组长</font></c:if>
				<c:if test="${teamUser.position == 3}">组员</c:if>
			</td>
			<td class="tdCenter">
				<c:if test="${teamUser.status == 1}">正常</c:if>
				<c:if test="${teamUser.status == 2}"><font color="red">申请</font></c:if>
				<c:if test="${teamUser.status == 3}"><font color="blue">拒绝</font></c:if>
				<c:if test="${teamUser.status == 4}"><font color="#FFCCCC">邀请</font></c:if>
				<c:if test="${teamUser.status == 9}"><font color="yellow">屏蔽</font></c:if>
			</td>
			<td class="tdCenter">
				<c:out value="${teamUser.nickname}"></c:out>
			</td>
			<td class="tdCenter">
				<fmt:formatDate value="${teamUser.createTime}" pattern="yyyy-MM-dd"/>
			</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
</div>